﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LikeUs.WebService.Contract
{
    [DataContract]
    public class UserInfo
    {
        private string m_name;
        private string m_email;
        private string m_comment;

        [DataMember]
        public string Name 
        {
            get
            {
                return m_name;
            }
            set
            {
                m_name = value;
            }
        }

        [DataMember]
        public string Email
        {
            get
            {
                return m_email;
            }
            set
            {
                m_email = value;
            }
        }

        [DataMember]
        public string Comment
        {
            get
            {
                return m_comment;
            }
            set
            {
                m_comment = value;
            }
        }
    }

    [DataContract]
    public class MovieInfo
    {
        private string m_name;
        private double m_rate;
        private string m_summary;
        private DateTime m_publishYear;

        [DataMember]
        public string Name
        {
            get
            {
                return m_name;
            }
            set
            {
                m_name = value;
            }
        }

        [DataMember]
        public double Rate
        {
            get
            {
                return m_rate;
            }
            set
            {
                m_rate = value;
            }
        }

        [DataMember]
        public string Summary
        {
            get
            {
                return m_summary;
            }
            set
            {
                m_summary = value;
            }
        }

        [DataMember]
        public DateTime PublishYear
        {
            get
            {
                return m_publishYear;
            }
            set
            {
                m_publishYear = value;
            }
        }
    }
}
